/**
 * @Author: lusx
 * @Date:   21-03-2019 10:31:47
 * @Project: Govern督办
 * @Last modified by:   lusx
 * @Last modified time: 21-03-2019 05:50:05
 */
import * as Apis from "../../apis/govern";
import { Toast } from "weaver-mobile";

const apis = {
  //该对象注释不要删
  document: Apis.getReportList //成文 id ,type
};
const Requests = {
  get: (key,params) => {
    return apis[key](params).then(data => {
      if (data.status === "1") {
        return data;
      } else {
        Toast.hide();
        Toast.fail(data.error);
      }
    });
  }
};
export default {
  Requests
};
